package graphic;

import javax.swing.*;
import java.awt.*;

/**
 * @program: javaLearn
 * @description:
 * @author: renhai
 * @Date ：2021/12/20 22:12
 **/
public class MyJFrames extends JFrame {
    public MyJFrames() {
        super("我的第一个JFrame");
        this.setBounds(800, 800, 400, 400);
        this.getContentPane().setBackground(Color.pink);
        this.setDefaultCloseOperation(EXIT_ON_CLOSE);
        this.setVisible(true);
    }

    public static void main(String[] args) {
        new MyJFrames();
    }
}
